# -*-coding:utf-8-*-

# 获得总的fasta文件,首先遍历整个数据，随后把数据放入sumfasta.fasta的文件下

import os

sumfasta = open('sumfasta.fasta', 'w')

for root, dirs, files in os.walk(r"fastadata"):
    for file in files:
        print(root)
        print(os.path.join(root, file))
        temp = open(os.path.join(root, file), 'r')
        sumfasta.write(temp.read())

sumfasta.close()
